<% title "Edit My Account" %>

<% form_for @user, :url => account_path do |f| %>
	<%= f.error_messages %>
	<%= render :partial => "form", :object => f %>
	<% if can? :moderate, @user%>
		<p>
		<%= f.label :role %><br/>
		<%= f.select :role, options_for_select(User::ROLES, @user.role) %><br/>
		</p>
	<%end%>
	<%= f.submit "แก้ไข", :class => "button" %>
<% end %>

<br /><%= link_to "My Profile", account_path %>


